#include "AdminConfiguration.h"

AgoraAdmin::Configuration*	AgoraAdmin::Configuration::_instance = NULL;

AgoraAdmin::Configuration::Configuration()
{
	this->_db = NULL;
}

AgoraAdmin::Configuration*	AgoraAdmin::Configuration::GetConfiguration()
{
	if (Configuration::_instance == NULL)
		Configuration::_instance = new Configuration();
	return Configuration::_instance;
}

void			AgoraAdmin::Configuration::InitDatabase(IDatabase* db)
{
	this->_db = db;
}

AgoraAdmin::IDatabase*		AgoraAdmin::Configuration::GetDatabase()
{
	return this->_db;
}